package com.wanshu.service.impl;

import com.wanshu.dao.RoleDao;
import com.wanshu.entity.Role;

import java.io.IOException;
import java.util.List;

public class RoleServiceImpl{

    private RoleDao roleDao;

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    public void findAll() throws IOException {
        List<Role> all = roleDao.findAll();
        System.out.println(all);
    }
}
